package com.jspx.talk;

import com.jspx.txweb.table.TalkMessage;

import java.util.Collection;
import java.util.Map;

/**
 * Created by chenyuan on 2015-8-11.
 *
 */
public interface TalkService {

    void setListeners(TalkListener[] eventListener);
    boolean registeredEventListeners(TalkListener event);
    String send(TalkMessage talkMessage);
    String delete(Collection<TalkMessage> talkMessageList);
    String delete(TalkMessage[] talkMessages);
    Map<String, String> getFieldErrors();
    boolean hasErrors();

}
